/*
 * =====================================================================================
 *
 *       Filename:  cl_poller_factory.cxx
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  04/09/2011 09:52:16 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Ken Chen (Ken), chen_kenz@emc.com
 *        Company:  EMC
 *
 * =====================================================================================
 */

#include <cstdlib>
#include <iostream>
#include "cl_poller_factory.hxx"
#include "cl_poller.hxx"
#include "cl_poll_poller.hxx"
#include "cl_epoll_poller.hxx"

namespace neo
{
using namespace std;

CLPoller* CLPollerFactory::create(void)
{
  if(::getenv("CL_USE_POLL") != NULL)
  {
    return new CLPollPoller;
  }
  else
  {
    return new CLEpollPoller;
  }
}

} // neo
